#include"room.h"
#include<stdio.h>
//获取房间的类型和容量
RoomType Room::get_type(void)
{
    return this->type;
}

//获取天数
int Room:: get_day(void)
{
	return day;
}

//获取房间号

uint16_t Room::get_id(void)
{
    return this->id;
}
//获取价格信息
float Room::get_price(void)
{
    return price*discount/10;
}
//退房
void Room::outgus(const Guest that,int i)
{
    for(i;i<cnt;i++)
    {
        if(i==cnt-1)
        {
            Guest temp_gus;
            guests[i]=temp_gus;
        }
        else
        {
            guests[i]=guests[i+1];
        }
    }
    cnt--;
}
